package com.ktjiaoyu.service;

import com.ktjiaoyu.entity.Supplier;
import com.ktjiaoyu.entity.SysRole;
import com.ktjiaoyu.entity.SysUser;
import com.ktjiaoyu.utils.Page;

import java.util.List;

public interface SupplierService {
    //分页查询
    public Page<Supplier> findPage(Supplier entity, Integer pageNo, Integer pageSize) throws Exception;

    //保存或修改供应商信息
    public boolean saveOrUpdate(Supplier entity) throws Exception;

    // 获取所有角色
    public List<Supplier> findAll() throws Exception;

    //根据id查询供应商信息
    public Supplier getById(Long id);

    //根据id删除供应商信息
    public boolean deleteById(Long id);
    //根据account获取用户详细信息
    public Supplier findByAccount(String supCode) throws Exception;
}
